package com.dounine.clouddisk360.parser.deserializer;

import java.io.IOException;

import org.apache.http.HttpException;
import org.apache.http.HttpRequest;
import org.apache.http.protocol.HttpContext;

public class BaseRequestInterceptor {
	
	public void process(HttpRequest request, HttpContext context) throws HttpException, IOException {
		request.addHeader(BaseConst.ACCEPT_KEY, BaseConst.ACCEPT_VAL);
		request.addHeader(BaseConst.ACCEPT_ENCODING_KEY, BaseConst.ACCEPT_ENCODING_VAL);
		request.addHeader(BaseConst.ACCEPT_LANGUAGE_KEY, BaseConst.ACCEPT_LANGUAGE_VAL);
		request.addHeader(BaseConst.CONNECTION_KEY, BaseConst.CONNECTION_VAL);
		request.addHeader(BaseConst.CONTENT_TYPE_KEY, BaseConst.CONTENT_TYPE_VAL);
		request.addHeader(BaseConst.USER_AGENT_KEY, BaseConst.USER_AGENT_VAL);
	}

}
